package main.java.day02;

import java.util.Scanner;

public class Demo {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入员工信息");
		String str=sc.nextLine();
		String[] str1=str.split(";");
		Person[] p= new Person[0];
		for (int i = 0; i < p.length; i++) {
			String str2=str1[i];
			String[] str3=str2.split(",");
			String name=str3[0];
			int age=Integer.parseInt(str3[1]);
			Person p1=new Person(name);
			p[i]=p1;
			
			
		}
	}

}
